from flask import Blueprint,request,jsonify
from database import db
bp_goods=Blueprint('goods',__name__)

@bp_goods.route('/')
def Goods():
    sql = 'select * from cgoods'
    res = db.findall(sql)
    return jsonify({"code":200,'list':res})





